<?
//Some vars
$postfix = ' - Mini-Google Private NetWork';
?>
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?echo $_title.$postfix?></title>
    <? echo $_css?>
    <link href="./css/header.css" rel="stylesheet" type="text/css" />
    <? echo $_js?>
    <script type="text/javascript" src="./jquery.js"></script>
    <? echo $_otherMeta?>
</head>

<body>
<script type="text/javascript">
    function TextBoxHelper(obj){
        var objDefault = $(obj).val();
        $(obj).select();
        obj.select();
        $(obj).blur(function(){
            if($(obj).val() == ''){
                $(obj).attr('value',objDefault);
            }
        });
    }
    $(document).ready(function(){
        $("#header_items_login").click(function(){
            var top = $(this).innerHeight();
            $("#header_loginBox").css({'top':top-1,'right':0});
            $("#header_loginBox").toggle('normal');
            $("#header_loginBox").focus();
        });
    });
</script>
<div id="header_selectorBar"><div id="header_items_mark">&nbsp;</div></div>
<div id="header_container">
    <a href="./index.php"><div class="header_items" id="header_items_web">
        Web
    </div></a>
    <a href="./image.php">
        <div class="header_items"  id="header_items_image">
            Images
        </div></a>
    <a href="./stats.php">
        <div class="header_items" id="header_items_stats">
            Statistics
        </div></a>

    <div class="header_items" id="header_items_login">
        Login/Register
    </div>
</div>
<div id="header_loginBox">
    <p>Login or Sign up</p>
    <form action="./user_cp.php" method="post" target="_self">
        <input onclick="TextBoxHelper(this)" name="username" value="Username" type="text"/>
        <input onclick="TextBoxHelper(this)" name="password" value="Password" type="password"/>

        <input type="submit" id="submit" value="Login" style="float:left;" />
        <input type="reset" id="reset" value="Reset" style="float:left; margin-left:10px" />
        <p style="float:right;"><a href="./reg.php" target="_self">Register</a></p>
    </form>
</div>
<?


?>